package com.kgc.xs.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.UUID;

public class SalesReturnDetail  implements Serializable {

    @ExcelIgnore
    private int id;

    @ExcelProperty("关联退货单编号")
    private String xsReturnCode;

    @ExcelProperty("商品id")
    private int goodId;

    @ExcelProperty("商品数量")
    private int quantity;

    @ExcelIgnore
    private int discountRate;

    @ExcelProperty("备注")
    private String notes;

    @ExcelProperty("创建人")
    private String createBy;

    @ExcelIgnore
    private Date createTime;

    @ExcelProperty("修改人")
    private String updateBy;

    @ExcelIgnore
    private Date updateTime;

    @ExcelIgnore
    private int isDelete;

    @ExcelIgnore
    private int warehouseId;

    @ExcelProperty("已发货数量")
    private BigDecimal shippedQuantity;

    @ExcelProperty("退货原因")
    private String returnReason;

    @ExcelProperty("退货数量")
    private long returnQuantity;

    @ExcelIgnore
    private long returnStatus;

    @ExcelProperty("退货价格")
    private  BigDecimal actualPrice;

    @ExcelProperty("明细编码")
    private String code= "7876868";

    public SalesReturnDetail() {
    }

    public SalesReturnDetail(int id, String xsReturnCode, int goodId, int quantity, int discountRate, String notes, String createBy, Date createTime, String updateBy, Date updateTime, int isDelete, int warehouseId, BigDecimal shippedQuantity) {
        this.id = id;
        this.xsReturnCode = xsReturnCode;
        this.goodId = goodId;
        this.quantity = quantity;
        this.discountRate = discountRate;
        this.notes = notes;
        this.createBy = createBy;
        this.createTime = createTime;
        this.updateBy = updateBy;
        this.updateTime = updateTime;
        this.isDelete = isDelete;
        this.warehouseId = warehouseId;
        this.shippedQuantity = shippedQuantity;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getXsReturnCode() {
        return xsReturnCode;
    }

    public void setXsReturnCode(String xsReturnCode) {
        this.xsReturnCode = xsReturnCode;
    }

    public int getGoodId() {
        return goodId;
    }

    public void setGoodId(int goodId) {
        this.goodId = goodId;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public int getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(int discountRate) {
        this.discountRate = discountRate;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    public int getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(int warehouseId) {
        this.warehouseId = warehouseId;
    }

    public BigDecimal getShippedQuantity() {
        return shippedQuantity;
    }

    public void setShippedQuantity(BigDecimal shippedQuantity) {
        this.shippedQuantity = shippedQuantity;
    }

    public String getReturnReason() {
        return returnReason;
    }

    public void setReturnReason(String returnReason) {
        this.returnReason = returnReason;
    }

    public long getReturnQuantity() {
        return returnQuantity;
    }

    public void setReturnQuantity(long returnQuantity) {
        this.returnQuantity = returnQuantity;
    }

    public long getReturnStatus() {
        return returnStatus;
    }

    public void setReturnStatus(long returnStatus) {
        this.returnStatus = returnStatus;
    }

    public BigDecimal getActualPrice() {
        return actualPrice;
    }

    public void setActualPrice(BigDecimal actualPrice) {
        this.actualPrice = actualPrice;
    }

    @Override
    public String toString() {
        return "SalesReturnDetail{" +
                "id=" + id +
                ", xsReturnCode='" + xsReturnCode + '\'' +
                ", goodId=" + goodId +
                ", quantity=" + quantity +
                ", discountRate=" + discountRate +
                ", notes='" + notes + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateBy='" + updateBy + '\'' +
                ", updateTime=" + updateTime +
                ", isDelete=" + isDelete +
                ", warehouseId=" + warehouseId +
                ", shippedQuantity=" + shippedQuantity +
                '}';
    }
}
